﻿/**
 *	html/pem_data_scene.js
 *
 *	(C) 2014 Yuanjj
 *
 * 	history:
 * 		2014-08-26		create the file
 */

/**
 *	initialize scene
 */
var g_scene;
function init_scene()
{
    Ext.define
    ( "model_data_scene", {
         extend:"Ext.data.Model",
         fields:[
             {name:"scene", type:"string"}
         ]
    });

    g_scene = new Ext.data.ArrayStore
    ({
         autoLoad:true,
         model:"model_data_scene",
    });

}

/**
 *	callback for setting scene
 *
 *	@scene			[in] the scene background
 */
function callback_set_scene( scene )
{
    g_scene.removeAll();

    g_scene.insert( 0, [[scene]] );
}
